<extend name='Public/_Main' />
<block name='title'>
    <title>
        修改模型
    </title>
</block>
<block name='right'>
<div class='well'>
    查询字段中:id,create_time为内置字段不可填写
</div>
    <div style='overflow:scroll;'>
        <table class='table table-bordered'>
            <thead>
                <tr>
                <th class='text-primary'>名称</th>
                    <volist name='field' id='f'>
                        <th>{$f.title}</th>
                    </volist>
                </tr>
            </thead>
            <tr>
            <td class='text-primary'><strong>字段值</strong></td>
                <volist name='field' id='f'>
                    <td>{$f.field}</td>
                </volist>
            </tr>
        </table>
    </div>
    <form class="require" action="{:U('rom')}" method="post">
        <div class="form-group">
            <label for="exampleInputEmail1">模型名称<span class="Validform_checktip"></span></label>
            <input type="text" class="form-control" placeholder="例：询盘管理" datatype='*' name="name" value='{$data.name}'>
        </div>
        <div class="form-group">
            <label for="exampleInputEmail1">列表查询字段<span class="Validform_checktip"></span></label>
            <textarea name="field" errormsg="格式错误" nullmsg="配置值不可为空" placeholder="例：id,create_time" rows="3" class="form-control">{$data.field}</textarea>
        </div>
        <input type='hidden' name='id' value='{$Think.get.id}' />
        <div class='col-xs-6'>
            <button class="btn btn-lg btn-primary btn-block" type="submit">保存</button>
        </div>
        <div class='col-xs-6'>
            <button class="btn btn-lg btn-default btn-block" type="button" onclick="javascript:history.back(-1);">返回</button>
        </div>
    </form>
</block>
